import { useParams, useSearchParams } from "react-router-dom";



const Article = () => {
  //获取SearchParams参数
 /* const [params] = useSearchParams();
  console.log('name:',params.get('name'),'age:',params.get('age'));*/

  //获取params参数
  const params = useParams()
  console.log('name:',params.name,'age:',params.age)

  return (
    <div>Article Page</div>
  )
}


export default Article;